/*
 * GameObject.cpp
 *
 *  Created on: 28.09.2013
 *      Author: dima
 */

#include "GameObjectModel.hpp"


Tanks::
Model::
GameObjectModel::
GameObjectModel() :
  m_ticks(0),
  m_rect(),
  m_type(),
  m_team(0)
{}

Tanks::
Model::
GameObjectModel::
~GameObjectModel()
{
  delete m_rect;
  m_rect = NULL;
}


Tanks::
Model::
SolidBlockModel::
SolidBlockModel(int argX,
      int argY,
      int argW,
      int argH)
{
  m_rect = new SDL_Rect;
  m_rect->x = argX;
  m_rect->y = argY;
  m_rect->w = argW;
  m_rect->h = argH;
  CollisionModel & collisionModel = CollisionModel::getInstance();
  collisionModel.RegisterObject(this);
  m_type = SolidBlock;
}


Tanks::
Model::
LandModel::
LandModel(int argX,
      int argY,
      int argW,
      int argH)
{
  m_rect = new SDL_Rect;
  m_rect->x = argX;
  m_rect->y = argY;
  m_rect->w = argW;
  m_rect->h = argH;
  m_type = Land;
}

